-- GENERATED SPELL FOR [Nuramoc] --


function spell0_20932(pUnit, Event) --@Lightning Breath,n/a--
pUnit:FullCastSpellOnTarget(15797,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20932', 2000, 1)
end

function spell1_20932(pUnit, Event) --@Poison Bolt,n/a--
pUnit:FullCastSpellOnTarget(21971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20932', 12500, 1)
end

function spell2_20932(pUnit, Event) --@Prismatic Shield,n/a--
pUnit:FullCastSpellOnTarget(38905,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20932', 0, 1)
end

function Sorts_20932(pUnit, Event)
local choix_sorts_20932 = math.random(0, 2)
if choix_sorts_20932 == 0 then
pUnit:RegisterEvent('spell0_20932', 1, 1)
end
if choix_sorts_20932 == 1 then
pUnit:RegisterEvent('spell1_20932', 1, 1)
end
if choix_sorts_20932 == 2 then
pUnit:RegisterEvent('spell2_20932', 1, 1)
end
end

function mob20932_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20932', math.random(1500, 3000), 1)
end

function mob20932_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20932_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20932_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20932, 1, 'mob20932_Action')
RegisterUnitEvent(20932, 2, 'mob20932_Leave')
RegisterUnitEvent(20932, 3, 'mob20932_Kill')
RegisterUnitEvent(20932, 4, 'mob20932_Die')
